home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / chat / ircii-2.8he / ircii-2 / help / ON / DCC_RAW < prev    next >
Encoding:
Text File  |  1993-05-04  |  1.5 KB  |  47 lines

  1. Usage: ON [#|+|-|^|&|@]DCC_RAW [-|^]<paramters> [action]
  2.   This is activated whenever you receive a raw message from 
  3.   a tcp connection established with $CONNECT().
  4.   The parameters for the action are as follows:
  5.     $0    file descriptor for the connection.
  6.     $1    host name in connection
  7.     $2    code as listed below
  8.     $3-   data or port number depending on code. 
  9.  
  10.   Incoming messages can be intercepted with ON DCC_RAW,
  11.   which has the following formats:
  12.  
  13.           fd host D data
  14.           fd host C
  15.           fd host N port
  16.           fd host E port
  17.  
  18.   The D message indicated incoming data.
  19.   The C message indicates that the socket has been closed.
  20.   The N message indicates that a socket listening on the
  21.   specified port has accepted a connection. fd in this case
  22.   is the file descriptor for the new connection.
  23.   The E message is generated when a CONNECT() results in a
  24.   successful connection.
  25.  
  26.   Conventions to be used for the socket access:
  27.  
  28.           Scripts using sockets should never use the
  29.           serial number 0 in their hooks. As their first
  30.           act before using the DCC_RAW hooks, they should
  31.           set:
  32.  
  33.           ON ^DCC_RAW * #
  34.  
  35.           To ensure that all raw DCC sockets produce no
  36.           output.
  37.  
  38.           A new set of hooks should be created for each
  39.           active socket at a chosen serial number. One
  40.           must always exist to detect the close message,
  41.           and as its last act must remove all the hooks
  42.           for that file descriptor.
  43.  
  44. See Also:
  45.   DCC RAW
  46.   ALIAS FUNCTIONS
  47.